import Vue from 'vue'
import Router from 'vue-router'

import Frist from '../pages/Frist'
import Login from '../pages/Login'
import Share from '../pages/Share'

import Cord from '../pages/Cord'

// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/dist/',
  routes: [
    {
      path: '/',
      name: 'Frist',
      component: Frist,
      children: [
        {
          path: '/',
          name: 'Cord',
          component: Cord
        }
      ]
    },
    {
      path: '/share',
      name: 'Share',
      component: Share
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    }

  ]
})
